package com.toidep.utilities;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class DatetimeUtil {

	public static String convertTimestampToString(String time) {
		String res= "";
		if (!time.equals("")) {
			SimpleDateFormat sp = new SimpleDateFormat("dd-MM-yyyy");
			Timestamp timestamp = new Timestamp(Long.parseLong(time)*1000);
			res = sp.format(timestamp);
		}
		return res;
	}
}
